import {  headerMenuSingle, menu} from '@/Json/menu'
export default [
    {
        url: 'menu',
        method: 'post',
        t(req:any) {
            const { menuType } = JSON.parse(req.body)
            console.log(menuType)
            if( menuType === "double" ) {
                return {
                    code: 0,
                    data:menu,
                    success: true
                }
            }else if( menuType === 'single'){
                return {
                    code: 0,
                    data:headerMenuSingle,
                    success: true
                }
            }
            return {
                code: 1,
                message: '查询失败',
                success: false
            }
        }
    }
]
